﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucFindJob.ascx.cs" Inherits="UserControl_ucFindJob" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<link href="../css/content.css" rel="stylesheet" type="text/css" />
<div class=" block">
</div>
<div class="Post">
    <div class="Post-tl">
    </div>
    <div class="Post-tr">
    </div>
    <div class="Post-bl">
    </div>
    <div class="Post-br">
    </div>
    <div class="Post-tc">
    </div>
    <div class="Post-bc">
    </div>
    <div class="Post-cl">
    </div>
    <div class="Post-cr">
    </div>
    <div class="Post-cc">
    </div>
    <div class="Post-body">
        <div class="Post-inner">
            <div class="PostContent">
                
                <h2 class="PostHeaderIcon-wrapper">
                    JOB SEARCH</h2>
                <%--<div id="node-7" class="node Post">--%>
                <%-- <div class="Post-tl">
                    </div>
                    <div class="Post-tr">
                    </div>
                    <div class="Post-bl">
                    </div>
                    <div class="Post-br">
                    </div>
                    <div class="Post-tc">
                    </div>
                    <div class="Post-bc">
                    </div>
                    <div class="Post-cl">
                    </div>
                    <div class="Post-cr">
                    </div>
                    <div class="Post-cc">
                    </div>--%>
                <%--<div class="Post-body">--%>
                <div class="PostHeaderIcons metadata-icons">
                </div>
                <div class="PostContent" style="text-align: center">
                    <div class="article">
                        <span class="print-link"></span>
                        <table id="table4" width="100%">
                            <tr>
                                <td align="left">
                                    <div>
                                        Job Number
                                        <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers"
                                            TargetControlID="txtJobID">
                                        </asp:FilteredTextBoxExtender>
                                        <asp:TextBox ID="txtJobID" CssClass="inp-form" runat="server"></asp:TextBox>
                                        &nbsp;<%--<asp:ImageButton ID="btnSearch" runat="server" ToolTip="Search" ImageUrl="~/Admin/image/searchjobs.png" 
                                            onclick="btnSearch_Click" />--%>
                                        <asp:Button ID="btnSearch" runat="server" Text="Search" ToolTip="Search" OnClick="btnSearch_Click" runat="server" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <%-- <div class="clearContent" style="text-align: center">
                            <asp:Label ID="lblResult" runat="server" Style="color: Red" />
                        </div>--%>
                    </div>
                </div>
                <%--<table width="75%" style="margin-right: 5px" align="center">
                    <tr>
                        <td>
                                
                            &nbsp;</td>
                        <td>
                                
                            <asp:Button ID="btnPrint" runat="server" Text="PRINT JOB SHEET" CssClass="button_all" />
                                
                                </td>
                        <td>
                                
                            <asp:Button ID="btnExt" runat="server" Text="EXIT" CssClass="button_all" OnClick="btnExt_Click" />
                                
                                </td>
                    </tr>
                </table>--%>
                <div class="full">
                    <%--  <ul class="tabs ">
                        <li class="active"><a href="#a">Customer Details</a></li>
                    </ul>--%>
                    <%-- <div class="tab_container inner">--%>
                    <%--<div class="tab_content" id="a" style="display: block;">--%>
                    <!--Content-->
                    <p class="main">
                     <asp:Panel ID="panel" runat="server" Height="400px" ScrollBars="Auto">
                        <asp:GridView ID="grdJobList" runat="server" Width="100%" AutoGenerateColumns="False"
                            CssClass="grd" OnRowDataBound="grdJobList_RowDataBound" 
                           >
                            <EmptyDataTemplate>
                                <span style="color: Silver">No Job Found</span>
                            </EmptyDataTemplate>
                            <Columns>
                                <asp:HyperLinkField DataNavigateUrlFields="JobId" DataNavigateUrlFormatString="~/Admin/Booking.aspx?id={0}"
                                    DataTextField="JobId" HeaderText="Number" ItemStyle-HorizontalAlign="Center"
                                    ItemStyle-Width="30px" />
                                <asp:TemplateField HeaderText="IMEINo">
                                    <ItemTemplate>
                                        <%# Eval("IMEINo")%>
                                    </ItemTemplate>
                                    <HeaderStyle  />
                                    <ItemStyle HorizontalAlign="Center" Wrap="True" Font-Bold="true"  Width="70px">
                                    </ItemStyle>
                                </asp:TemplateField>
                                <asp:HyperLinkField DataNavigateUrlFields="CustomerIndex" DataNavigateUrlFormatString="~/Admin/Customer.aspx?id={0}"
                                    DataTextField="CustomerFullName" HeaderText="CustomerName" ItemStyle-HorizontalAlign="Center"
                                    ItemStyle-Width="112px" />
                                <asp:TemplateField HeaderText="DateBook" HeaderStyle-Width="60px">
                                    <ItemTemplate>
                                        <%# (Convert.ToDateTime(Eval("DateBook")).ToString("dd/MM/yyyy"))%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="100px"></HeaderStyle>
                                    <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="center" />
                                </asp:TemplateField>
                                <%--<asp:TemplateField HeaderText="Approval Status" HeaderStyle-Width="100px">
                                    <ItemTemplate>
                                        <asp:Label ID="lbApprovalStatus" runat="server"></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle Width="50px"></HeaderStyle>
                                    <ItemStyle Width="90px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>--%>
                                <asp:TemplateField HeaderText="Quotation Status" HeaderStyle-Width="120px">
                                    <ItemTemplate>
                                        <%-- <asp:Label ID="lbQuotationStatus" runat="server"></asp:Label>--%>
                                        <%# Eval("QuoteStatus")%>
                                    </ItemTemplate>
                                    <ItemStyle Width="120px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="SalesAmount" HeaderStyle-Width="50px">
                                    <ItemTemplate>
                                        <%# Eval("SalesAmount")%>
                                    </ItemTemplate>
                                    <HeaderStyle Width="50px"></HeaderStyle>
                                    <ItemStyle Width="50px" VerticalAlign="Middle" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Description Fault">
                                    <ItemTemplate>
                                        <%# Eval("FaultDescription")%>
                                    </ItemTemplate>
                                    <ItemStyle Width="200px" VerticalAlign="Middle" HorizontalAlign="Center"></ItemStyle>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle CssClass="grdHeader" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle CssClass="grdAlternateRow" />
                            <PagerSettings PageButtonCount="6" />
                            <RowStyle CssClass="grdRow" />
                        </asp:GridView>
                        </asp:Panel>
                    </p>
                    <%--</div>--%>
                    <%--</div>--%>
                </div>
                <div class="cleared">
                </div>
                <div class="PostFooterIcons metadata-icons">
                </div>
            </div>
            <div class="cleared">
            </div>
        </div>
    </div>
</div>
